package cn.iocoder.yudao.module.chatgpt.controller.admin.chat.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;


@Data
@Schema(description = "聊天数据对象")
public class ChatDTO {
    @NotBlank(message = "聊天内容不可为空")
    @Schema(description = "聊天内容", requiredMode = Schema.RequiredMode.REQUIRED, example = "聊天内容")
    String content;

    @Min(0)
    @Schema(description = "携带上下文条数", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    Integer withContext;

    @NotBlank(message = "会话ID不可为空")
    @Schema(description = "会话ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "10086")
    String chatId;

    @NotBlank(message = "提词器角色扮演:002:作家;003:语文教师;004:记者;005:内容创作者")
    @Schema(description = "Prompt Role",  example = "002")
    String roleCode;
}
